package com.zy.ivideo.repository;

import com.zy.ivideo.entity.BulletScreenEntity;
import com.zy.ivideo.entity.CommentEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface BulletScreenRepository extends JpaRepository<BulletScreenEntity,Long> {
    @Query(nativeQuery=true,value="select * from b_bulletscreen where datatype=?1 and itemid=?2")
    List<BulletScreenEntity> getBulletScreenInfo(int datatype, String itemid);
}
